/* .team{
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows:auto;
    gap: 20px;
    margin: 0 auto;
    margin-top: 20px;
}
.team_member{
    width: 100%;
    height: 35vh;
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.team_member>img{
    width: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}
button{
    width: 30%;
    background-color: #24b4fb;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    padding: 0.8em 1.2em 0.8em 1em;
    transition: all ease-in-out 0.2s;
    font-size: 16px;
    color: #FFF;
}
button:hover{
    background-color: #0e7eb6;
} */
 /* Grid Layout */
.team {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    margin: 0 auto;
    margin-top: 20px;
}

/* Team Member Card */
.team_member {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.team_member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(-45deg, #4481eb 0, #04befe 100%);
    border-radius: 20px 20px 0 0;
    z-index: 0;
}

/* Profile Image */
.team_member > img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.team_member:hover > img {
    transform: scale(1.1);
}

/* Message Container */
.message {
    width: 100%;
    text-align: center;
    z-index: 1;
    margin-top: 10px;
}

.message p {
    margin: 12px 0;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-left: 20px;
}

.message p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4481eb;
}

/* Button Styling */
button {
    margin-top: 20px;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(-45deg, #4481eb 0, #04befe 100%);
    transition: all 0.3s ease;
    z-index: 1;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(68, 129, 235, 0.4);
}

button:active {
    transform: translateY(-1px);
}

/* Red Button Variant */
button[style*="background:#ef2d2d"] {
    background: linear-gradient(-45deg, #ef2d2d 0, #ff6b6b 100%) !important;
}

button[style*="background:#ef2d2d"]:hover {
    box-shadow: 0 7px 15px rgba(239, 45, 45, 0.3);
}

/* Card Hover Effects */
.team_member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(68, 129, 235, 0.5);
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team_member {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.6s ease-out forwards;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .team {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .team {
        width: 95%;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .team_member {
        padding: 25px 15px;
    }

    .team_member > img {
        width: 110px;
        height: 110px;
    }

    .message p {
        font-size: 14px;
    }

    button {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* Optional: Loading State */
.team_member.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Optional: Empty State */
.team:empty::after {
    content: 'No team members found';
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}